//
//  PathGainTool.m
//  Test
//
//  Created by zhaoshijie on 23/12/2017.
//  Copyright © 2017 zhaoshijie. All rights reserved.
//

#import "SJPathGainTool.h"

@implementation SJPathGainTool


/**
 获取沙盒路径

 @return 路径
 */
+ (NSString *)gainHomeDirectoryPath
{
    NSString *path = NSHomeDirectory();
    return path;
}


/**
 获取Documents路径

 @return 路径
 */
+ (NSString *)gainDocumentsPath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
    NSString *path = [paths objectAtIndex:0];
    return path;
}


/**
 获取Library路径

 @return 路径
 */
+ (NSString *)gainLibraryPath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,YES);
    NSString *path = [paths objectAtIndex:0];
    return path;
}


/**
 获取Caches路径

 @return 路径
 */
+ (NSString *)gainCachesPath
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask,YES);
    NSString *path = [paths objectAtIndex:0];
    return path;
}


/**
 获取tmp路径

 @return 路径
 */
+ (NSString *)gainTemporaryCachesPath
{
    NSString *path=NSTemporaryDirectory();
    return path;
}


@end
